package springboot.Interface.serviceInterface;

import springboot.domain.ReportRepair;
import springboot.domain.StudentReportRepair;

import java.sql.SQLException;
import java.util.Collection;

public interface ReportRepairManagementServiceInterface {
    //查找所有宿管已批准的报修申请
    Collection<ReportRepair> findAll(int pageNo, int pageSize);
    //根据宿舍楼查找宿管已批准的报修申请
    Collection<ReportRepair>  find(String dorm);
    //查找需要宿管批准的学生报修申请
    Collection<StudentReportRepair> checkReport(int pageNo, int pageSize);
    //删除学生的申请
    boolean deleteStudentReportRepair(int id);
    //学生提交报修申请
    boolean studentReportRepair(StudentReportRepair studentReportRepair);
    //宿管同意批准学生的报修申请
    boolean managerAgreeReportRepair(StudentReportRepair studentReportRepair);
    //增加一条报修申请数据
    boolean managerDisAgreeReportRepair(StudentReportRepair studentReportRepair);
    boolean add(ReportRepair reportRepair);
    //删除一条报修申请数据
    boolean delete(int id) throws SQLException;
    //修改一条报修申请数据
    boolean update(ReportRepair reportRepair) throws SQLException;
}
